﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

// <summary>
/// Author: IDEALAB
/// Created Date:14-Feb-2011
/// Description:Used to save the Common variables and functions.
/// </summary>
namespace EncircleFTM
{
    public partial class frmViewFileTransferLog : Form
    {
        /// <summary>
        /// Default construcor
        /// </summary>
        public frmViewFileTransferLog()
        {
            InitializeComponent();
        }

        /// <summary>
        /// To view Content of the Log XML file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmViewFileTransferLog_Load(object sender, EventArgs e)
        {
            try
            {
                if (File.Exists(System.IO.Path.Combine(clsCommonData.APP_DATA_PATH, clsCommonData.STR_LOG_FILE)))
                {
                    string URL = System.IO.Path.Combine(clsCommonData.APP_DATA_PATH, clsCommonData.STR_LOG_FILE);
                    webBrFileTransfer.Url = new Uri(URL);
                }                
            }
            catch (Exception ex)
            {
                clsCommonData.WriteError(ex.ToString());
            }
        }

        /// <summary>
        /// Used to close the screen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}
